package com.lxk.mall.pms.domain.bo.history;

import com.lxk.mall.pms.domain.PmsProductBrowseHistory;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 商品浏览记录业务对象 pms_product_browse_history
 *
 * @author Lion Li
 * @date 2024-06-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PmsProductBrowseHistory.class, reverseConvertGenerate = false)
public class PmsProductBrowseHistoryBo extends BaseEntity {

    /**
     * 记录编号
     */
    @NotNull(message = "记录编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户编号
     */
    @NotNull(message = "用户编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 商品 SPU 编号
     */
    @NotNull(message = "商品 SPU 编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long spuId;

    /**
     * 用户是否删除
     */
    @NotNull(message = "用户是否删除不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer userDelFlag;


}
